//
//  MainViewController.swift
//  Weibo10
//
//  Created by dongdong on 15/10/16.
//  Copyright © 2015年 dongdong. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        addChildViewController()
    }
}

// MARK - 设置界面
extension MainViewController {
    
    //添加控制器
    private func addChildViewController() {
        let home = HomeTableViewController()
        
        home.title = "首页"
        
        home.tabBarItem.image = UIImage(named: ))
        
        let nav = UINavigationController(rootViewController: home)
        
        addChildViewController(nav)
        
    }
}
